ChipFind - документация

Электронный компонент: 12F629

Скачать:  PDF   ZIP

Document Outline

2003 Microchip Technology Inc.
DS41190C
PIC12F629/675
Data Sheet
8-Pin FLASH-Based 8-Bit
CMOS Microcontrollers
DS41190C - page ii
2003 Microchip Technology Inc.
Information contained in this publication regarding device
applications and the like is intended through suggestion only
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications. No
representation or warranty is given and no liability is assumed by
Microchip Technology Incorporated with respect to the accuracy
or use of such information, or infringement of patents or other
intellectual property rights arising from such use or otherwise.
Use of Microchip's products as critical components in life
support systems is not authorized except with express written
approval by Microchip. No licenses are conveyed, implicitly or
otherwise, under any intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, K
EE
L
OQ
,
MPLAB, PIC, PICmicro, PICSTART, PRO MATE and
PowerSmart are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
FilterLab, micro
ID, MXDEV, MXLAB, PICMASTER, SEEVAL
and The Embedded Control Solutions Company are registered
trademarks of Microchip Technology Incorporated in the U.S.A.
Accuron, dsPIC, dsPICDEM.net, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming,
ICSP, ICEPIC, microPort, Migratable Memory, MPASM, MPLIB,
MPLINK, MPSIM, PICC, PICkit, PICDEM, PICDEM.net,
PowerCal, PowerInfo, PowerTool, rfPIC, rfLAB, Select Mode,
SmartSensor, SmartShunt, SmartTel and Total Endurance are
trademarks of Microchip Technology Incorporated in the U.S.A.
and other countries.
Serialized Quick Turn Programming (SQTP) is a service mark of
Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
2003, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in July 1999
and Mountain View, California in March 2002.
The Company's quality system processes and
procedures are QS-9000 compliant for its
PICmicro
8-bit MCUs, K
EE
L
OQ
code hopping
devices, Serial EEPROMs, microperipherals,
non-volatile memory and analog products. In
addition, Microchip's quality system for the
design and manufacture of development
systems is ISO 9001 certified.
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip's Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as "unbreakable."
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break microchip's code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
2003 Microchip Technology Inc.
DS41190C-page 1
PIC12F629/675
High Performance RISC CPU:
Only 35 instructions to learn
- All single cycle instructions except branches
Operating speed:
- DC - 20 MHz oscillator/clock input
- DC - 200 ns instruction cycle
Interrupt capability
8-level deep hardware stack
Direct, Indirect, and Relative Addressing modes
Special Microcontroller Features:
Internal and external oscillator options
- Precision Internal 4 MHz oscillator factory
calibrated to 1%
- External Oscillator support for crystals and
resonators
- 5
s wake-up from SLEEP, 3.0V, typical
Power saving SLEEP mode
Wide operating voltage range - 2.0V to 5.5V
Industrial and Extended temperature range
Low power Power-on Reset (POR)
Power-up Timer (PWRT) and Oscillator Start-up
Timer (OST)
Brown-out Detect (BOD)
Watchdog Timer (WDT) with independent
oscillator for reliable operation
Multiplexed MCLR/Input-pin
Interrupt-on-pin change
Individual programmable weak pull-ups
Programmable code protection
High Endurance FLASH/EEPROM Cell
- 100,000 write FLASH endurance
- 1,000,000 write EEPROM endurance
- FLASH/Data EEPROM Retention: > 40 years
Low Power Features:
Standby Current:
- 1 nA @ 2.0V, typical
Operating Current:
- 8.5
A @ 32 kHz, 2.0V, typical
- 100
A @ 1 MHz, 2.0V, typical
Watchdog Timer Current
- 300 nA @ 2.0V, typical
Timer1 oscillator current:
- 4
A @ 32 kHz, 2.0V, typical
Peripheral Features:
6 I/O pins with individual direction control
High current sink/source for direct LED drive
Analog comparator module with:
- One analog comparator
- Programmable on-chip comparator voltage
reference (CV
REF
) module
- Programmable input multiplexing from device
inputs
- Comparator output is externally accessible
Analog-to-Digital Converter module (PIC12F675):
- 10-bit resolution
- Programmable 4-channel input
- Voltage reference input
Timer0: 8-bit timer/counter with 8-bit
programmable prescaler
Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Gate Input mode
- Option to use OSC1 and OSC2 in LP mode
as Timer1 oscillator, if INTOSC mode
selected
In-Circuit Serial Programming
TM
(ICSP
TM
) via
two pins
* 8-bit, 8-pin devices protected by Microchip's Low Pin Count Patent: U.S. Patent No. 5,847,450. Additional U.S. and
foreign patents and applications may be issued or pending.
Device
Program
Memory
Data Memory
I/O
10-bit A/D
(ch)
Comparators
Timers
8/16-bit
FLASH
(words)
SRAM
(bytes)
EEPROM
(bytes)
PIC12F629
1024
64
128
6
1
1/1
PIC12F675
1024
64
128
6
4
1
1/1
8-Pin FLASH-Based 8-Bit CMOS Microcontroller
PIC12F629/675
DS41190C-page 2
2003 Microchip Technology Inc.
Pin Diagrams
V
SS
V
DD
GP5/T1CKI/OSC1/CLKIN
GP4/AN3/T1G/OSC2/CLKOUT
GP3/MCLR/V
PP
GP0/AN0/CIN+/ICSPDAT
GP1/AN1/CIN-/V
REF
/ICSPCLK
GP2/AN2/T0CKI/INT/COUT
1
2
3
4
5
6
7
8
PIC12F675
V
SS
V
DD
GP5/T1CKI/OSC1/CLKIN
GP4/T1G/OSC2/CLKOUT
GP3/MCLR/V
PP
GP0/CIN+/ICSPDAT
GP1/CIN-/ICSPCLK
GP2/T0CKI/INT/COUT
1
2
3
4
5
6
7
8
PIC12F629
8-pin PDIP, SOIC, DFN-S
2003 Microchip Technology Inc.
DS41190C-page 3
PIC12F629/675
Table of Contents
1.0
Device Overview ......................................................................................................................................................................... 5
2.0
Memory Organization.................................................................................................................................................................. 7
3.0
GPIO Port ................................................................................................................................................................................. 19
4.0
Timer0 Module .......................................................................................................................................................................... 27
5.0
Timer1 Module with Gate Control ............................................................................................................................................. 30
6.0
Comparator Module .................................................................................................................................................................. 35
7.0
Analog-to-Digital Converter (A/D) Module (PIC12F675 only) ................................................................................................... 41
8.0
Data EEPROM Memory ............................................................................................................................................................ 47
9.0
Special Features of the CPU .................................................................................................................................................... 51
10.0 Instruction Set Summary ........................................................................................................................................................... 69
11.0 Development Support ............................................................................................................................................................... 77
12.0 Electrical Specifications ............................................................................................................................................................ 83
13.0 DC and AC Characteristics Graphs and Tables ..................................................................................................................... 105
14.0 Packaging Information ............................................................................................................................................................ 115
Appendix A: Data Sheet Revision History ......................................................................................................................................... 121
Appendix B: Device Differences ....................................................................................................................................................... 121
Appendix C: Device Migrations ......................................................................................................................................................... 122
Appendix D: Migrating from other PICmicro
Devices ...................................................................................................................... 122
Index ................................................................................................................................................................................................. 123
On-Line Support ................................................................................................................................................................................ 127
Systems Information and Upgrade Hot Line ..................................................................................................................................... 127
Reader Response ............................................................................................................................................................................. 128
Product Identification System ........................................................................................................................................................... 129
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at docerrors@mail.microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150.
We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
Microchip's Worldwide Web site; http://www.microchip.com
Your local Microchip sales office (see last page)
The Microchip Corporate Literature Center; U.S. FAX: (480) 792-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include liter-
ature number) you are using.
Customer Notification System
Register on our web site at www.microchip.com/cn to receive the most current information on all of our products.